/* version.c - creation version/date/time module */

#include "vxWorks.h"
#include "version.h"

/*
modification history
--------------------
01c,11may04,md  add global variables for VxWorks version numbers
01b,17jan01,sn  simplify job of host val  
01a,06mar96,dat	written
*/

/*
This module is always built with each executable image.  It provides
the VxWorks version id, and the time and date it was built.

The date stamp may be overriden by defining RUNTIME_CREATION_DATE. This
will be primarily used by tools that compare images built on different hosts 
(host validation).

The ANSI predefined macros __DATE__ and __TIME__ are used to provide
the date/time information.  ANSI compliant compilers are required for
building all VxWorks executables.
*/

/* numerical values for VxWorks version */

const unsigned int vxWorksVersionMajor = _WRS_VXWORKS_MAJOR;
const unsigned int vxWorksVersionMinor = _WRS_VXWORKS_MINOR;
const unsigned int vxWorksVersionMaint = _WRS_VXWORKS_MAINT;

/* string identifiers for VxWorks version */

char * runtimeName    = RUNTIME_NAME;
char * runtimeVersion = RUNTIME_VERSION;
char * vxWorksVersion = VXWORKS_VERSION;

#ifdef RUNTIME_CREATION_DATE
char * creationDate   = RUNTIME_CREATION_DATE;
#else
char * creationDate   = __DATE__ ", " __TIME__;
#endif
